package com.qtt.app.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class AppViewsRecord {
    private Integer viewsRecordId;

    private Long userId;

    private String generalId;

    private String courseTitle;

    private String coursePicture;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date gmtCreate;

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date gmtModified;

    public AppViewsRecord(Integer viewsRecordId, Long userId, String generalId, String courseTitle, String coursePicture, Date gmtCreate, Date gmtModified) {
        this.viewsRecordId = viewsRecordId;
        this.userId = userId;
        this.generalId = generalId;
        this.courseTitle = courseTitle;
        this.coursePicture = coursePicture;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
    }

    public AppViewsRecord() {
        super();
    }

    public Integer getViewsRecordId() {
        return viewsRecordId;
    }

    public void setViewsRecordId(Integer viewsRecordId) {
        this.viewsRecordId = viewsRecordId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getGeneralId() {
        return generalId;
    }

    public void setGeneralId(String generalId) {
        this.generalId = generalId;
    }

    public String getCourseTitle() {
        return courseTitle;
    }

    public void setCourseTitle(String courseTitle) {
        this.courseTitle = courseTitle;
    }

    public String getCoursePicture() {
        return coursePicture;
    }

    public void setCoursePicture(String coursePicture) {
        this.coursePicture = coursePicture;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
}